home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Toolkits / Escritorio / Open Contacts / setup.exe / {app} / ActionPlugin / ActionPlugin.xsd next >
Encoding:
Extensible Markup Language  |  2009-01-19  |  2.5 KB  |  55 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8"?>
  2. <!--This file is for validating plugin.xml of each plugin in sub-directories. Each plugin.xml should have reference
  3. to this schema.-->
  4. <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"
  5.            targetNamespace="http://www.fonlow.com"
  6.            xmlns="http://www.fonlow.com">
  7.  
  8.   <xs:simpleType name="programType">
  9.     <xs:restriction base="xs:string">
  10.       <xs:enumeration value="exe"/>
  11.       <xs:enumeration value="dll"/>
  12.       <xs:enumeration value="wsh"/>
  13.       <xs:enumeration value="url"/>
  14.     </xs:restriction>
  15.   </xs:simpleType>
  16.  
  17.   <xs:element name="plugin">
  18.     <xs:complexType>
  19.       <xs:sequence>
  20.         <xs:element name="info">
  21.           <xs:complexType>
  22.             <xs:sequence>
  23.               <xs:element name="id" type="xs:string" />
  24.               <xs:element name="version" type="xs:string" />
  25.               <xs:element name="author" type="xs:string" />
  26.               <xs:element name="authorWebsite" type="xs:string" />
  27.               <xs:element name="name" type="xs:string" />
  28.               <xs:element name="description" type="xs:string" />
  29.               <xs:element name="actionTypeToAct" type="xs:string" minOccurs="0" />
  30.               <xs:element name="fieldNameToAct" type="xs:string" minOccurs="0" />
  31.             </xs:sequence>
  32.           </xs:complexType>
  33.         </xs:element>
  34.         <xs:element name="programs">
  35.           <xs:complexType>
  36.             <xs:sequence>
  37.               <xs:element name="program" minOccurs="1" maxOccurs="unbounded">
  38.                 <xs:complexType>
  39.                   <xs:attribute name="label" type="xs:string" use="required" />
  40.                   <xs:attribute name="hint" type="xs:string" use="required" />
  41.                   <xs:attribute name="type" type="programType" use="required" />
  42.                   <xs:attribute name="src" type="xs:string" use="required" />
  43.                   <xs:attribute name="urlHead" type="xs:string" use="optional" />
  44.                   <xs:attribute name="urlTail" type="xs:string" use="optional" />
  45.                   <xs:attribute name="func" type="xs:string" use="optional" />
  46.                 </xs:complexType>
  47.               </xs:element>
  48.             </xs:sequence>
  49.           </xs:complexType>
  50.         </xs:element>
  51.       </xs:sequence>
  52.       <xs:attribute name="type" type="xs:string" use="required" fixed="action" />
  53.     </xs:complexType>
  54.   </xs:element>
  55. </xs:schema>